﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using DTO;
using DAO;
using System.Collections;

namespace BUS
{
    public class ChiTietDauThauBUS
    {
        ChiTietDauThauDAO chiTietDauThauDAO;

        // Phương thức khởi tạo.
        public ChiTietDauThauBUS()
        {
            chiTietDauThauDAO = new ChiTietDauThauDAO();
        }

        public int ThemChiTietDauThau(ChiTietDauThau chiTietDauThau)
        {
            return chiTietDauThauDAO.ThemChiTietDauThau(chiTietDauThau);
        }

        public int CapNhatChiTietDauThau(ChiTietDauThau chiTietDauThau)
        {
            return chiTietDauThauDAO.CapNhatChiTietDauThau(chiTietDauThau);
        }

        public int XoaChiTietDauThau(ChiTietDauThau chiTietDauThau)
        {
            return chiTietDauThauDAO.XoaChiTietDauThau(chiTietDauThau);
        }

        public ArrayList LayDanhSachChiTietDauThauTheoMaDauThau(DauThau dauThau)
        {
            return chiTietDauThauDAO.LayDanhSachChiTietDauThauTheoMaDauThau(dauThau);
        }

        public ArrayList LayDanhSachChiTietDauThauTheoMaTaiKhoan(TaiKhoan taiKhoan)
        {
            return chiTietDauThauDAO.LayDanhSachChiTietDauThauTheoMaTaiKhoan(taiKhoan);
        }
    }
}
